package com.situ.ftbserver.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.time.LocalDateTime;
@TableName("reserve")
@Data
@JsonIgnoreProperties("handler")
public class Reserve {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer memberId;
    private Integer courseId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
    @TableField(exist = false)
    private Member member;
    @TableField(exist = false)
    private Course course;
}
